//
//  XMSegmentViewController.h
//  XMKit
//
//  Created by Ce Liu on 2018/5/29.
//  Copyright © 2018年 ChenXiaoMing. All rights reserved.
//

#import "XMBaseViewController.h"

@interface XMSegmentViewController : XMBaseViewController
/**
 选项卡标题
 */
@property (nonatomic, strong) NSArray<NSString *> *segmentTitles;

/**
 包含的子控制器
 */
@property (nonatomic, strong) NSArray<UIViewController *> *viewControllers;

/**
 选中的索引
 */
@property (nonatomic, assign) NSInteger selectedIndex;

+ (XMSegmentViewController *)segmentOnViewController:(UIViewController *)viewController childControllers:(NSArray<UIViewController *> *)controllers setmentTitles:(NSArray<NSString *> *)titles ViewFrame:(CGRect)frame;

@end
